package junior.db.query;

import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;

/**
 * @author wubo
 * @date 2024/9/5 18:26
 */
public class PageQueryArgs extends QueryArgs implements IPage, Serializable {
    @ApiModelProperty("页码")
    private int page = 1;
    @ApiModelProperty("每页记录数")
    private int limit = 200;
    
    public PageQueryArgs() {}
    
    public PageQueryArgs(int page, int limit) {
        this.page = page;
        this.limit = limit;
    }
    
    public int getPage() {
        return page;
    }
    
    public void setPage(int page) {
        this.page = page;
    }
    
    public int getLimit() {
        return limit;
    }
    
    public void setLimit(int limit) {
        this.limit = limit;
    }
}
